import Link from 'next/link'; import { Eye, Heart, MessageCircle } from 'lucide-react'; import { formatDate } from '@/lib/utils/format'; import { UserPostRow, UserProfileDto } from '@/types/account/profile'; type Props = { list: UserPostRow[]; author?: UserProfileDto|null; }; export default function UserPostsList({ list, author }: Props) { if (list.length === 0) { return

작성한 게시글이 없습니다.

; } const authorDisplay = author?.name || author?.memberSID || null; const avatarInitial = (authorDisplay?.charAt(0) || '?').toUpperCase(); return ( ); }